package com.xxx.kjds.serviceImpl;

import com.xxx.kjds.entity.SaveGoods;
import com.xxx.kjds.entity.SaveGoodsExample;
import com.xxx.kjds.entity.SaveGoodsKey;
import com.xxx.kjds.mapper.SaveGoodsMapper;
import com.xxx.kjds.service.SaveGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaveGoodsServiceImpl implements SaveGoodsService {
    @Autowired
    private SaveGoodsMapper saveGoodsMapper;

    @Override
    public long countByExample(SaveGoodsExample example) {
        return saveGoodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SaveGoodsExample example) {
        return saveGoodsMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(SaveGoodsKey key) {
        return saveGoodsMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(SaveGoods record) {
        return saveGoodsMapper.insert(record);
    }

    @Override
    public int insertSelective(SaveGoods record) {
        return saveGoodsMapper.insertSelective(record);
    }

    @Override
    public List<SaveGoods> selectByExample(SaveGoodsExample example) {
        return saveGoodsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(SaveGoods record, SaveGoodsExample example) {
        return saveGoodsMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(SaveGoods record, SaveGoodsExample example) {
        return saveGoodsMapper.updateByExample(record, example);
    }

    public SaveGoods selectByPrimaryKey(SaveGoodsKey key) {
        return saveGoodsMapper.selectByPrimaryKey(key);
    }

    public int updateByPrimaryKey(SaveGoods record) {
        return saveGoodsMapper.updateByPrimaryKey(record);
    }

}
